<style>
    .form-group .radiospan{
        margin-right: 10px;
    }
</style>

<div class="main">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" id="form1">
        <div class="panel panel-default">
            <div class="panel-heading">  添加房产资讯	 </div>	
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">资讯标题：</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" name="data[title]" class="form-control" value="{$info['title']}" />
                    </div>
                </div>
           	
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">栏目：</label>
                    <div class="col-sm-9 col-xs-12">
                      {php echo form_element::select(  $categorys ,'data[fid]','fid', $info['fid'] )}   
                    </div>
                </div>	
         
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">封面图</label>
                    <div class="col-sm-9 col-xs-12">	
                        {php echo tpl_form_field_image('thumb', $info['thumb'])}
                    </div>	
                </div>	
                <!-- 如果是公众号文章填写公众号链接 -->
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">外链：</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" name="data[gpoun_address]" class="form-control" value="{$info['gpoun_address']}" />
                    
                    <p>把小程序已经关联的公众号文章链接填写为外链，在小程序内打开。填写了外链，内容详情不会展示。</p>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 内容详情</label>
                    <div class="col-sm-9 col-xs-12">
                        {php echo tpl_ueditor('newstext', $info['newstext']);}
                    </div>	
                </div>	
          
                <div class="form-group">
                    <label class="col-xs-6 col-sm-3 col-md-2 control-label">是否显示</label>
                    <div class="col-sm-9 col-xs-6">
                        <div class="input-group">
                        <?=form_element::radio(['是','否'],'data[disabled]','disabled',(($info['disabled']==0)? 0:1))?>
                        </div>	
                    </div>	
                </div>	
                <div class="form-group">
                    <label class="col-xs-6 col-sm-3 col-md-2 control-label">阅读量</label>
                    <div class="col-sm-3 col-xs-6">	
                       <input type="text" name="data[onclick]" class="form-control" value="{$info['onclick']}" /> 
                    </div>	
                </div> 
               
                
            </div>	
        </div>	
        <div class="form-group col-sm-12">
            <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />	
            <input type="hidden" name="token" value="{$_W['token']}" />	
        </div>
    </form>
</div>